package edu.guet.web.controllers;

import java.util.HashMap;
import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.log4j.lf5.util.LogFileParser;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;


@Controller
public class TestController {
 private static Logger log = LoggerFactory.getLogger(TestController.class);
	@RequestMapping("index.shtm")
	public ModelAndView index(ModelMap map){
		log.debug("response for /test/index.shtm");
		Map<String,Object> user = new HashMap<String, Object>();
		user.put("name", "banxi1988");
		user.put("age", 23);
		user.put("email", "banxi1988@gmail.com");
		map.put("user", user);
		
		return new ModelAndView("testftl");
		
	}
}
